package com.atguigu.gulimallcart.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName ThreadPoolConfigProperties
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/7/11
 * @Version 1.0
 */
@ConfigurationProperties("gulimall.thread")  //该配置可以在properties文件中配置
@Component
@Data
public class ThreadPoolConfigProperties {
    private Integer corePoolSize;
    private Integer maxPoolSize;
    private Integer keepAliveTime;
}
